package yf.mall.entity;


import lombok.Setter;
import lombok.Getter;
import java.io.Serializable;

import java.math.BigDecimal;

/**
 * 账户实体
 * 表名 account
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Sun May 24 14:16:14 CST 2020
 */
@Setter
@Getter
public class AccountEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Long id;
        //ENUM-类型:"CASH-代金券","POINT-积分","COUPON-优惠券","VOUCHER-换购券","EXP-经验值","GFIT-捐赠"
    private Integer type;
        //用户ID
    private Long userId;
        //余额
    private BigDecimal amount;
        //锁定金额
    private BigDecimal lockAmount;
    
    public AccountEntity(){

    }
    public AccountEntity(Integer type, Long userId, BigDecimal amount, BigDecimal lockAmount) {
        this.type = type;
        this.userId = userId;
        this.amount = amount;
        this.lockAmount = lockAmount;
    }

}
